home *** CD-ROM | disk | FTP | other *** search
- #ifndef PREFS_PRINTERTXT_H
- #define PREFS_PRINTERTXT_H 1
- /*
- ** printertxt.h for ACE Basic
- **
- ** Note: Translated to ACE by ConvertC2ACE
- ** @ MapMeadow Software, Nils Sjoholm
- **
- **
- ** Date: 09/03/95
- **
- **
- */
-
- /*
- ** This are the StructPointer defines for printertxt.h
- */
- #ifndef PrinterTxtPrefsPtr
- #define PrinterTxtPrefsPtr ADDRESS
- #endif
- #ifndef PrinterUnitPrefsPtr
- #define PrinterUnitPrefsPtr ADDRESS
- #endif
- /*
- ** End of StructPointer defines for printertxt.h
- */
-
-
- /*****************************************************************************/
-
-
- #ifndef EXEC_TYPES_H
- #include <exec/types.h>
- #endif
-
- #ifndef LIBRARIES_IFFPARSE_H
- #include <libraries/iffparse.h>
- #endif
-
-
- /*****************************************************************************/
-
-
- #define ID_PTXT 1347704916
- #define ID_PUNT 1347767892
-
-
- #define DRIVERNAMESIZE 30 /* Filename size */
- #define DEVICENAMESIZE 32 /* .device name size */
-
-
- STRUCT PrinterTxtPrefs
-
- STRING pt_Reserved SIZE 16 /* 4*SIZEOF(LONGINT) */ /* SYSTEM reserved */
- STRING pt_Driver SIZE 30 /* DRIVERNAMESIZE */ /* printer driver filename */
- BYTE pt_Port /* printer port connection */
-
- SHORTINT pt_PaperType
- SHORTINT pt_PaperSize
- SHORTINT pt_PaperLength /* Paper length in # of lines */
-
- SHORTINT pt_Pitch
- SHORTINT pt_Spacing
- SHORTINT pt_LeftMargin /* Left margin */
- SHORTINT pt_RightMargin /* Right margin */
- SHORTINT pt_Quality
- END STRUCT
-
- /* constants for PrinterTxtPrefs.pt_Port */
- #define PP_PARALLEL 0
- #define PP_SERIAL 1
-
- /* constants for PrinterTxtPrefs.pt_PaperType */
- #define PT_FANFOLD 0
- #define PT_SINGLE 1
-
- /* constants for PrinterTxtPrefs.pt_PaperSize */
- #define PS_US_LETTER 0
- #define PS_US_LEGAL 1
- #define PS_N_TRACTOR 2
- #define PS_W_TRACTOR 3
- #define PS_CUSTOM 4
- #define PS_EURO_A0 5 /* European size A0: 841 x 1189 */
- #define PS_EURO_A1 6 /* European size A1: 594 x 841 */
- #define PS_EURO_A2 7 /* European size A2: 420 x 594 */
- #define PS_EURO_A3 8 /* European size A3: 297 x 420 */
- #define PS_EURO_A4 9 /* European size A4: 210 x 297 */
- #define PS_EURO_A5 10 /* European size A5: 148 x 210 */
- #define PS_EURO_A6 11 /* European size A6: 105 x 148 */
- #define PS_EURO_A7 12 /* European size A7: 74 x 105 */
- #define PS_EURO_A8 13 /* European size A8: 52 x 74 */
-
- /* constants for PrinterTxtPrefs.pt_PrintPitch */
- #define PP_PICA 0
- #define PP_ELITE 1
- #define PP_FINE 2
-
- /* constants for PrinterTxtPrefs.pt_PrintSpacing */
- #define PS_SIX_LPI 0
- #define PS_EIGHT_LPI 1
-
- /* constants for PrinterTxtPrefs.pt_PrintQuality */
- #define PQ_DRAFT 0
- #define PQ_LETTER 1
-
-
- STRUCT PrinterUnitPrefs
-
- STRING pu_Reserved SIZE 16 /* 4*SIZEOF(LONGINT) */ /* SYSTEM reserved */
- LONGINT pu_UnitNum /* Unit number for OpenDevice() */
- LONGINT pu_OpenDeviceFlags /* Flags for OpenDevice() */
- STRING pu_DeviceName SIZE 32 /* DEVICENAMESIZE */ /* NAME FOR OpenDevice() */
- END STRUCT
-
-
- /*****************************************************************************/
-
-
- #endif /* PREFS_PRINTERTXT_H */
-